package com.vincce.fitness.core.base;

import com.vincce.fitness.entity.UserSession;

/**
 * Created by henry on 4/9/14.
 */
public class UserSessionHolder {

	private static ThreadLocal<UserSession> threadLocal = new ThreadLocal<UserSession>();

	public static void put(UserSession userSession) {
		threadLocal.set(userSession);
	}

	public static UserSession get() {
		return threadLocal.get();//线上运行代码时打开
	}

}
